package com.itheima.health.mpconfig;


import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration  //  配置mybatis plus 分页插件
public class MPConfig {
      @Bean
       public PaginationInterceptor createPaginationInterceptor(){
          return  new PaginationInterceptor(); //  mp  分页插件对象 配置到ioc容器中
      }
}
